
$(document).ready(function(){
	//banner
	$('.banner').slick({
	  dots: true,
	  infinite: true,
	  slidesToShow: 1,
	  slidesToScroll: 1,
	  autoplay: true,
	  autoplaySpeed: 2000,
	});
	// $('.banner').on('beforeChange', function(event, slick, currentSlide, nextSlide){
	// 	var Height = $(this).find(".slick-slide:eq("+(nextSlide+1)+") img").height();
	// 	$(this).find(".slick-slide:eq("+nextSlide+") img").css("margin-top",-(Height-270)/2);
	// });
	//slick
	$('.slick').slick({
		slidesToShow: 4,
		slidesToScroll: 1,
		autoplay: true,
		autoplaySpeed: 2000,
	});
	$(".myTab li").bind("mouseover",function(){
		var $this = $(this);
		var index = $this.index();
		$this.addClass("se");
		$this.siblings().removeClass("se");
		$this.parent().next("#myBox").find("div").eq(index).siblings().removeClass("show"); 
		$this.parent().next("#myBox").find("div").eq(index).addClass("show");     
	})

})
